﻿import idv.ben.picasawebservice4flash.data.*;
import idv.ben.picasawebservice4flash.service.*;

class idv.ben.picasawebservice4flash.data.AlbumEntryMedia{
	
	private var __title:String;
	private var __description:String;
	private var __keywords:String;
	private var __content:String;
	private var __thumbnail:String;
	private var __credit:String;
	
	/**
	* 建構子
	*/
	function AlbumEntryMedia(){
	}

	/**
	* 設定資料
	* @param paramName 由 http://picasaweb.google.com/data/feed/api/user/<i>userID</i>?kind=<i>kinds</i> 取回的 xml 中，&lt;feed&gt; 節點下的 &lt;entry&gt; 節點下的 &lt;media:{param name}&gt; 節點的 {param name}。
	* @param paramValue 值
	*/
	public function applyParam(paramName:String, paramValue:String):Void{
		//trace("paramName=" + paramName + ", paramValue=" + paramValue);
		switch(paramName.toLowerCase()){
			case "title".toLowerCase():
			case "description".toLowerCase():
			case "keywords".toLowerCase():
			case "content".toLowerCase():
			case "thumbnail".toLowerCase():
			case "credit".toLowerCase():
				this["__" + paramName] = paramValue;
		}
	}
	
	public function get title():String{return __title;}
	public function get description():String{return __description;}
	public function get keywords():String{return __keywords;}
	public function get content():String{return __content;}
	public function get thumbnail():String{return __thumbnail;}
	public function get credit():String{return __credit;}
}